package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户地址对象 client_address
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
public class ClientAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户地址ID */
    private Long addressId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long clientId;

    /** 地址详情 */
    @Excel(name = "地址详情")
    private String address;

    /** 用户地址经纬度 */
    @Excel(name = "用户地址经纬度")
    private String latandlong;

    /** 是否为默认地址（布尔值） */
    @Excel(name = "是否为默认地址", readConverterExp = "布=尔值")
    private Integer isDefault;

    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setLatandlong(String latandlong) 
    {
        this.latandlong = latandlong;
    }

    public String getLatandlong() 
    {
        return latandlong;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("clientId", getClientId())
            .append("address", getAddress())
            .append("latandlong", getLatandlong())
            .append("isDefault", getIsDefault())
            .toString();
    }
}
